import request from '@/utils/request'

// 查询充值选项列表
export function listVipRechargeOptions(query) {
  return request({
    url: '/system/vipRechargeOptions/list',
    method: 'get',
    params: query
  })
}

// 查询充值选项详细
export function getVipRechargeOptions(id) {
  return request({
    url: '/system/vipRechargeOptions/' + id,
    method: 'get'
  })
}

// 新增充值选项
export function addVipRechargeOptions(data) {
  return request({
    url: '/system/vipRechargeOptions',
    method: 'post',
    data: data
  })
}

// 修改充值选项
export function updateVipRechargeOptions(data) {
  return request({
    url: '/system/vipRechargeOptions',
    method: 'put',
    data: data
  })
}

// 删除充值选项
export function delVipRechargeOptions(id) {
  return request({
    url: '/system/vipRechargeOptions/' + id,
    method: 'delete'
  })
}
